package com.cx.abstractFactory.api;

import java.util.concurrent.TimeUnit;

/**
 * 缓存适配器
 * 定义接口规范
 *
 * @Author:cxy
 * @Date:2022/3/21 21:34
 */
public interface ICacheAdapter {

    Object get(String key);

    void set(String key, Object value, long time, TimeUnit timeUnit);

    void del(String key);

}
